<!DOCTYPE html>
<html ng-app="theApp">
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
        <title><?php $view['slots']->output('title', 'Welcome!') ?></title>
        <?php $view['slots']->output('stylesheets') ?>
	<link href="<?php echo $view['assets']->getUrl('css/themain.css') ?>" type="text/css" rel="stylesheet" />
	<link href="<?php echo $view['assets']->getUrl('css/bootstrap.css') ?>" type="text/css" rel="stylesheet" />
	<link rel="shortcut icon" href="<?php echo $view['assets']->getUrl('favicon.ico') ?>" />
    </head>
    <body>
	<div class="container">
		<div class="row">
			<div class="span10">
				<h1>The header</h1>
			</div>
			<div class="span2">
				<?php if ($view['security']->isGranted('ROLE_USER')): ?>
					Hello <a href="#"><?php echo $app->getUser()->getUsername(); ?></a>
					<br/>
					<a href="<?php echo $view['router']->generate('logout'); ?>">Logout</a>
				<?php else: ?>
					<a href="<?php echo $view['router']->generate('login'); ?>">Login</a>
				<?php endif; ?>
			</div>
		</div>
		<div class="row">
			<div class="span2">	
				<?php echo $view['actions']->render('AcmeTest:Index:test3', array('listid' => 1, 'routeName' => $app->getRequest()->attributes->get('_route'))); ?>

			</div>
			<div class="span10">
			        <?php $view['slots']->output('_content') ?>	
			</div>
		</div>
		<div class="row">
			<div class="span12">
				Copyright &copy;
			</div>
		</div>
	</div>
        

        <?php $view['slots']->output('javascripts') ?>
	<script src="<?php echo $view['assets']->getUrl('js/jquery-1.9.0.min.js') ?>"></script>
	<script src="<?php echo $view['assets']->getUrl('js/angular.min.js') ?>"></script>
	<script src="<?php echo $view['assets']->getUrl('js/angular-sanitize.min.js') ?>"></script>
	<script src="<?php echo $view['assets']->getUrl('js/controllers.js') ?>"></script>
	<script src="<?php echo $view['assets']->getUrl('bundles/fosjsrouting/js/router.js') ?>"></script>
	<script type="text/javascript" src="<?php echo $view['router']->generate('fos_js_routing_js', array('callback' => 'fos.Router.setData')) ?>"></script>
	<script src="<?php echo $view['assets']->getUrl('js/themain.js') ?>"></script>
    </body>
</html>